package mulMan.gui.view;
import java.awt.event.ActionListener;

import javax.swing.JButton;

import mulMan.domain.AudioFile;

public class ModifyFileView extends AudioFileView{
	
	private static final long serialVersionUID = -8083483641423766011L;
	
	private JButton buttonModify;
	private JButton buttonPlay;

	public ModifyFileView(AudioFile audioFile){
		super(audioFile);
	}
	
	public void initView() {
		super.initView();
		
		setTitle("Modify file window");
	    
	    buttonModify = new JButton();
	    buttonModify.setText("Modify");
	    buttonModify.setBounds(15, 120, 100, 20);
	    getPanel().add(buttonModify);
	    
	    buttonPlay = new JButton();
	    buttonPlay.setText("Play");
	    buttonPlay.setBounds(125, 120, 100, 20);
	    getPanel().add(buttonPlay);
	}
	
	public void addModifyAudioFileListener(ActionListener mafl) {
		buttonModify.addActionListener(mafl);
    }
	
	public void addPlayAudioFileListener(ActionListener pafl) {
		buttonPlay.addActionListener(pafl);
    }

}
